home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10751 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: airdmhor.gen.nz!not-for-mail
  2. From: gumboot@airdmhor.gen.nz (Simon Hosie)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How do you reset the computer using C on a PC ?
  5. Date: 20 Mar 1996 07:27:30 +1200
  6. Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
  7. Distribution: world
  8. Message-ID: <4in1r2$oj2@airdmhor.gen.nz>
  9. References: <31473FD4.48AA@ccis.com> <Pine.A32.3.91.960313183048.180818A-100000@red.weeg.uiowa.edu> <827181506snz@dfdesign.demon.co.uk>
  10. NNTP-Posting-Host: airdmhor.gen.nz
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. > In article <Pine.A32.3.91.960313183048.180818A-100000@red.weeg.uiowa.edu>
  14. >            robinson@blue.weeg.uiowa.edu "The Amorphous Mass" writes:
  15.  
  16. > > On Wed, 13 Mar 1996, Derek Lund wrote:
  17. > >
  18. > > > Help?
  19. > >
  20. > > int main(void)
  21. > > {
  22. > >     printf("press ctrl-alt-del.");
  23. > >     return 0;
  24. > > }
  25.  
  26. Dominic Feeley:
  27. > As printf() is a variadic function, shouldn't you #include <stdio.h>
  28. > as well ?
  29.  
  30.   It might also be a good idea to send a newline character, otherwise it
  31. might get overwritten by the system prompt when it returns.
  32.